var _Step = require('scenes/game/toturial/step.js');
var _inherit = require('core/inherit.js');
var _global = require('global/global.js');

function Step() {
    _Step.call(this);
    this.mMoveCount = 0;
}
_inherit(Step, _Step);
Step.prototype.onAbsorbStart = function (accept) {
    if (accept) {
        this.mMoveCount++;
        if (this.mMoveCount >= 2) {
            this.mToturial.nextStep();
            this.mLocal = null;
            this.mToturial = null;
        }
    }
};
Step.prototype.onStart = function (toturial, local) {
    this.mToturial = toturial;
    this.mLocal = local;

    var rtf = this.rtfHeader().textBuilder()
        .addText('Numbers 3 and higher\nwill only add together\n', 'black')
        .addText('if they are twins.', 'red')
        .create();
    toturial.showHeaderTip(rtf);
    toturial.showFooterTip('ONLY THREES AND ABOVE CAN DOUBLE');
};

module.exports = Step;